const Mock = require("mockjs");
const data = Mock.mock({
  "list|8-10": [
    {
      title: "@ctitle(2)",
      id: "@id",
      "banner|3-5": ["@image(120x80, @color)"],
      "children|6-10": [
        {
          url: "@image(80x80, @color)",
          title: "@ctitle",
          id: "@id",
        },
      ],
    },
  ],
  "product|10": [
    {
      title: "@ctitle(2)",
      id: "@id",
      "children|10-20": [
        {
          title: "@ctitle",
          id: "@id",
          url: "@image(120x80, @color)",
          "price|10-1000": 1,
          desc: "@cword(10, 20)",
          sku: {
            colors: ["蓝色", "红色", "绿色"],
            size: ["160", "165", "170", "175", "180", "185"],
          },
        },
      ],
    },
  ],
});

module.exports = data;
